home *** CD-ROM | disk | FTP | other *** search
- @Echo Off
- set x=x
- Echo Copying Files To Temporary Directory On Harddisk.......
- if not exist c:\$temp\*.* goto make
- goto exs
- :make
- set x=ZAP
- md c:\$temp >nul
- :exs
- xcopy . c:\$temp >nul
- :handler
- If errorlevel 0 goto run
- if errorlevel 1 goto nocd
- if errorlevel 2 goto break
- if errorlevel 4 goto nomem
- if errorlevel 5 goto diskerr
- Echo An Unknown Error Occured......
- goto delfile
- :break
- Echo You Pressed CTRL+BREAK........
- Echo Aborting......
- goto delfile
- :nomem
- Echo An Initialization Error Occured;
- Echo There is not Enough Free Memory or Disk Space to Complete The Operation
- goto delfile
- :nocd
- Echo The (Source) Files Could not Be Found!
- Echo Aborting.......
- goto delfile
- :diskerr
- Echo A Disk Write Error Occured......
- Echo There Is Not Enough Disk Space......
- Goto delfile
- :run
- c:
- cd\$temp
- attrib -R *.* >nul
- Echo Starting Program.......
- setup
- ror
- Echo Deleting Temporary Files..........
- :delfile
- attrib -R *.* /s >nul
- del CHRSET3.DAT >nul
- del FILE_ID.DIZ >nul
- del README.BAT >nul
- del README.DOC >nul
- del RISE.SMD >nul
- del ROR.EXE >nul
- del SETUP.EXE >nul
- del PLAY$.BAT >nul
-
- Echo Temporary Files Removed
- cd..
- if "%x%"=="ZAP" goto ZAP
- Echo Your $TEMP Directory already existed, and was not empty.
- Echo $TEMP NOT Deleted
- goto out
- :zap
- echo y|del c:\$temp\. >nul
- rd c:\$temp >nul
- :out
- %cdrom%:
- cd\
-